package com.taptech.doufu.model.novel.bean

import com.taptech.doufu.bean.TagBean
import com.taptech.doufu.bean.UserBean
import com.taptech.doufu.bean.choice.BannerModel
import java.io.Serializable

data class NovelDetailBean(
        var title: String = "",        //标题
        var tipTxt: String = "",       //阅读量
        var des: String = "",          //简介
        var user: UserBean = UserBean(),//作者信息
        var is_vip: Int = 0,           //是否收费
        val vipFree:Boolean = false,   //包月
        var id: Int = 0,
        var description:String = "",
        var article_num: Int = 0,      //章节数
        var shareUrl: String = "",     //分享URL
        var read_times: String = "",   //浏览次数
        var tags: MutableList<TagBean> = arrayListOf(), //标签
        var finished: Int = 0,         //完本
        var collect_times: String = "", //收藏次数
        val pre_collect:Int = 0,       //预收藏
        var update_time: Long = 0,     //更新时间
        var length: String = "",       //字数
        var star: String = "",         //文评分数
        var star_times: String = "",   //文评参与人数
        var comment_times: String = "", //评论数量
        var with_image_w: String = "", //竖版封面
        var end_price: Float = 0f,   //完本折扣价
        var total_price: Float = 0f, //完本原价
        var reward_sum: Int = 0, //打赏数量
        var audit_status:Int = 0,//0 正常 1 未发布 2 审核中 3 审核未通过
        var thumbnail: String = "",//横版封面
        var images:MutableList<NovelCoverBean> = mutableListOf(),
        var red_envelope_count: Int = 0,// 红包数量
        var red_envelope_unexpired: Int = 0,//有效的红包数量
        var red_envelope_unexpired_read: Int = 0,//
        var month_ticket_sum: Int = 0, //月票数量
        var flowerCount:Int = 0,//献花数量
        var has_fav: Boolean = false,//是否收藏
        var has_praise: Boolean = false,//是否点赞
        var status:Int = 0, //是否已发布
        var is_recommend:Int = 0,
        var recommend_text:String = "",
        var is_full_paid: Boolean = false,//是否已经购买完本
        var fullBuyTxt: String = "",  //完本折扣标题
        var doufubei5ps: String = "", //豆花杯描述文案  （可以改成适配所有活动）
        var has_permissions: Int = 0,  //离线权限
        var hot_comments:MutableList<NovelCommentBean> = mutableListOf(),//热门评论
        val object_type:Int = 0,
        var lastReadPosition:Int = 0, //最后阅读的位置
        var lastReadSectionId:Int = 0, //最后阅读章节的ID
        var full_activity:NovelActivityBean = NovelActivityBean(),  //完本限时活动
        val invitation_desc:String  = "",
        val ip_tags:MutableList<String> = mutableListOf(),
        val copyright:String = "",
        val activity_link:NovelActivityLinkBean = NovelActivityLinkBean(), //活动入口埋点
        val activity_banner:MutableList<BannerModel> = mutableListOf()  //轮播图
):Serializable


data class NovelDetailSimpleBean(
        var title: String = "",        //标题
        var des: String = "",          //简介
        var id: Int = 0,
        var shareUrl: String = "",     //分享URL
        var images:MutableList<NovelCoverBean> = mutableListOf(),
        var user:UserBean = UserBean()
):Serializable

data class NovelCoverBean(
        val imgUrl:String = "",
        val height:Int = 0,
        val width:Int = 0
):Serializable

data class NovelActivityBean(
        val activity_price: Float = 0f,
        val note: String = "",
        val start_time: String = "",
        val end_time:String = ""
):Serializable

data class NovelActivityLinkBean(
        val title: String = "",
        val desc:String = "",
        val url:String = ""
):Serializable
